package com.ruoyi.serviceItem.mapper;

import com.ruoyi.serviceItem.domain.Order;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author Lenovo
* @description 针对表【order(订单表)】的数据库操作Mapper
* @createDate 2025-03-18 20:09:22
* @Entity com.ruoyi.serviceItem.domain.Order
*/
@Mapper
public interface OrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    @MapKey("orderId")
    List<Map<String, Object>> selectOrderList(@Param("storeId") Long storeId,
                                              @Param("orderStatus") Integer orderStatus,
                                              @Param("searchKey") String searchKey);

    Order selectOrderDetail(Long orderId);

}
